Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detailsToggle fast follow #4659

Merged
merged 3 commits into from
Dec 18, 2023
Merged

detailsToggle fast follow #4659

merged 3 commits into from
Dec 18, 2023

Conversation

mirnawong1
Copy link
Contributor

this pr updates the code i the following sections because the ux was a little weird if you immediately clicked on the toggle after it expanded:

  • handleToggleClick flips the current open/close state (!current), and ensures hover is always active.
  • handleMouseEnterchecks if the content is already open (isOn) before enabling hover
  • handleMouseLeave enables so that the content closes only if it's not already open due to a click.

@mirnawong1 mirnawong1 requested a review from a team as a code owner December 15, 2023 20:27
Copy link

vercel bot commented Dec 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 18, 2023 3:22pm

@github-actions github-actions bot added size: small This change will take 1 to 2 days to address Docs team Authored by the Docs team @dbt Labs labels Dec 15, 2023
@mirnawong1 mirnawong1 changed the title update behavior adn code detailsToggle fast follow Dec 15, 2023
Copy link
Collaborator

@JKarlavige JKarlavige left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! Able to hover over the items to show the details as well as clicking them. Clicking them fast does not seem to cause any odd behavior! :shipit:

@mirnawong1
Copy link
Contributor Author

awesome! thank you sooo much @JKarlavige !

@JKarlavige
Copy link
Collaborator

awesome! thank you sooo much @JKarlavige !

For sure, nice work on the fix!!

@mirnawong1 mirnawong1 merged commit ee6b249 into current Dec 18, 2023
7 checks passed
@mirnawong1 mirnawong1 deleted the mwong-detailstoggle-ff branch December 18, 2023 15:22
@mirnawong1
Copy link
Contributor Author

adding this slack convo for more context and explaination

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs team Authored by the Docs team @dbt Labs size: small This change will take 1 to 2 days to address
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants